import axios from '../plugins/http.js'
//登陆相关的请求
/*
 * 登陆
 * */
export function api_login(username, password) {
  return axios.post('/admin/login', {
    username,
    password
  })
}

/*
 * 登出
 * */
export function api_loginOut() {
  return axios.post('/admin/logout')
}

/*
 * 获取用户信息
 * */
export function api_info() {
  return axios.get('/admin/info')
}
